package com.kerwin;

public class runnnn {
    public static void main(String[] args) {


            Runnable runnable = new Runnable() {
                @Override
                public void run() {

                    try {
                        Thread.sleep(3000);
                        System.out.println("短信发送成功");
                    } catch (InterruptedException e) {
                        throw new RuntimeException(e);
                    }
                }
            };
            new Thread(runnable).start();

        mainn();

        }

public static void mainn(){
    System.out.println("主方法执行");
    System.out.println("主方法执行完毕");
}

}


